package com.prs.crm.action.sale;

import org.apache.struts2.convention.annotation.Action;
import org.courser.ui.PaginationSupport;

import com.prs.crm.action.FlowAction;
import com.prs.crm.domain.sale.SaleInvoice;
import com.prs.crm.domain.sale.SalesStoreOut;
import com.prs.crm.service.sale.SaleInvoiceService;

public class SaleInvoiceAction extends FlowAction<SaleInvoice> {

	private static final long serialVersionUID = 1L;
	
	private SaleInvoiceService saleInvoiceService;
	
	private SaleInvoice invoice;
	
	private SalesStoreOut storeOut;
	
	private PaginationSupport pagination;

	public void setSaleInvoiceService(SaleInvoiceService saleInvoiceService) {
		this.saleInvoiceService = saleInvoiceService;
	}

	public SaleInvoiceService getSaleInvoiceService() {
		return saleInvoiceService;
	}

	public void setInvoice(SaleInvoice invoice) {
		this.invoice = invoice;
	}

	public SaleInvoice getInvoice() {
		return invoice;
	}

	public void setStoreOut(SalesStoreOut storeOut) {
		this.storeOut = storeOut;
	}

	public SalesStoreOut getStoreOut() {
		return storeOut;
	}

	public void setPagination(PaginationSupport pagination) {
		this.pagination = pagination;
	}

	public PaginationSupport getPagination() {
		return pagination;
	}
	
	@Action("listInvoice")
	public String listInvoice()
	{
		return SUCCESS;
	}
	
	@Action("createInvoice")
	public String createInvoice()
	{
		return SUCCESS;
	}
}


